#ifndef _BOOK_H_
#define _BOOK_H_

#include<iostream>
#include<vector>
#include<math.h>
#include<stdlib.h>
#include<string.h>
#include<stdio.h>

using namespace std;

enum Genre
  {
    fiction=0,nonfiction,periodical,biography,children
  };

class Book
{
 public:
  Book();
 Book(string isbn,string name,string author1,Genre type1,string edition_date1):
  ISBN(isbn),book_name(name),author(author1),type(type1),edition_date(edition_date1)
  {judge_borrow=false;};
  void Borrow();
  void Return();
  void Show();
  bool operator==(const Book& temp);
  bool operator!=(const Book& temp);
  friend ostream& operator<<(ostream& os,const Book& temp);

 private:
  Genre type;
  string ISBN;
  string book_name;
  string author;
  string edition_date;
  bool judge_borrow;   //true for book been borrowed
};

#endif
